<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新增线索</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <!--标签插件-->
    <link rel="stylesheet" href="/js/jquery-tags-input/jquery.tagsinput.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css" />
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/cluePoolManager/cluePoolOpenSea.css"/>
</head>
<body>
<div>
    <div class="container-fluid p-t-15">
        <div class="row">
            <div class="col-sm-12">
                <div class="card">
                    <div class="card-header">
                        <h4>新增线索</h4>
                    </div>
                    <div class="card-body">
                        <form class="form-horizontal" style="margin-left: 130px;" autocomplete="off">
                            <!--线索池主键-->
                            <input type="hidden" id="poolId" name="poolId" th:value="${poolId}"/>
                            <input type="hidden" id="defaultMark" name="defaultMark" th:value="${defaultMark}">
                            <input type="hidden" id="capacity" name="capacity" th:text="${capacity}">
                            <div class="form-group">
                                <label class="col-sm-1 control-label label-required" style="width: 120px;text-align: left;">公司名称</label>
                                <div class="col-sm-4">
                                    <input type="text" id="companyName" class="form-control" placeholder="请输入公司名称">
                                </div>
                                <label class="col-sm-1 control-label label-required" style="width: 120px;text-align: left;">联系人</label>
                                <div class="col-sm-4">
                                    <input type="text" id="contactPerson" class="form-control" placeholder="请输入联系人">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">联系电话</label>
                                <div class="col-sm-4">
                                    <input type="text" id="contactPersonPhone" class="form-control" placeholder="请输入联系电话">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">性别</label>
                                <div class="col-sm-4">
                                    <label class="lyear-radio radio-inline radio-primary">
                                        <input type="radio" value="0" name="sex" checked><span>男</span>
                                    </label>
                                    <label class="lyear-radio radio-inline radio-primary">
                                        <input type="radio" value="1" name="sex"><span>女</span>
                                    </label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">公司邮箱</label>
                                <div class="col-sm-4">
                                    <input type="text" id="companyEmail" class="form-control" placeholder="请输入公司邮箱">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">职务</label>
                                <div class="col-sm-4">
                                    <input type="text" id="job" class="form-control" placeholder="请输入职务">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">线索评级</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="rating" type="text" title="请选择" data-live-search="true">
                                        <option value="">请选择线索评级</option>
                                        <option value="1">一级</option>
                                        <option value="2">二级</option>
                                        <option value="3">三级</option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label label-required" style="width: 120px;text-align: left;">线索来源</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="source" type="text" title="请选择" data-live-search="true">
                                        <option value="">请输入线索来源</option>
                                        <option value="1">促销</option>
                                        <option value="2">搜索引擎</option>
                                        <option value="3">广告</option>
                                        <option value="4">转介绍</option>
                                        <option value="5">线上注册</option>
                                        <option value="6">线上询价</option>
                                        <option value="7">预约上门</option>
                                        <option value="8">陌拜</option>
                                        <option value="9">电话咨询</option>
                                        <option value="10">邮件咨询</option>
                                        <option value="11">其他</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">客户类别</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="clientCategories" type="text" title="请选择" data-live-search="true">
                                        <option value="">请选择客户类别</option>
                                        <option value="1">优</option>
                                        <option value="2">良</option>
                                        <option value="3">一般</option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">客户级别</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="clientLevel" type="text" title="请选择" data-live-search="true">
                                        <option value="">请选择客户级别</option>
                                        <option value="1">A</option>
                                        <option value="2">B</option>
                                        <option value="3">C</option>
                                        <option value="4">D</option>
                                        <option value="5">E</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label label-required" style="width: 120px;text-align: left;">社会信用码</label>
                                <div class="col-sm-4">
                                    <input type="text" id="unifiedSocialCreditCode" class="form-control" placeholder="请输入社会信用码" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">行业</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="industry" type="text" title="请选择" data-live-search="true">
                                        <option value="">请输入行业</option>
                                        <option value="1">农、林、牧、渔业</option>
                                        <option value="2">采矿业</option>
                                        <option value="3">制造业</option>
                                        <option value="4">电力、热力、燃气及水生产和供应业</option>
                                        <option value="5">建筑业</option>
                                        <option value="6">批发和零售业</option>
                                        <option value="7">交通运输、仓储和邮政业</option>
                                        <option value="8">住宿和餐饮业</option>
                                        <option value="9">信息传输、软件和信息技术服务业</option>
                                        <option value="10">金融业</option>
                                        <option value="11">房地产业</option>
                                        <option value="12">租赁和商务服务业</option>
                                        <option value="13">科学研究和技术服务业</option>
                                        <option value="14">水利、环境和公共设施管理业</option>
                                        <option value="15">居民服务、修理和其他服务业</option>
                                        <option value="16">教育</option>
                                        <option value="17">卫生和社会工作</option>
                                        <option value="18">文化、体育和娱乐业</option>
                                        <option value="19">公共管理、社会保障和社会组织</option>
                                        <option value="20">国际组织</option>
                                        <option value="21">其他</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">公司规模</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="companySize" type="text" title="请选择" data-live-search="true">
                                        <option value="">请选择公司规模</option>
                                        <option value="1">0-20人</option>
                                        <option value="2">20-99人</option>
                                        <option value="3">100-499人</option>
                                        <option value="4">500-999人</option>
                                        <option value="5">1000-9999人</option>
                                        <option value="6">10000人以上</option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">公司网址</label>
                                <div class="col-sm-4">
                                    <input type="text" id="companyWebsite" class="form-control" placeholder="请输入公司网址">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">注册号</label>
                                <div class="col-sm-4">
                                    <input type="text" id="registrationNumber" class="form-control" placeholder="请输入注册号">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">组织机构代码</label>
                                <div class="col-sm-4">
                                    <input type="text" id="organizationCode" class="form-control" placeholder="请输入组织机构代码">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">公司类型</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="companyType" type="text" title="请选择" data-live-search="true">
                                        <option value="">请选择公司类型</option>
                                        <option value="1">有限责任公司</option>
                                        <option value="2">股份有限公司</option>
                                        <option value="3">集体所有制</option>
                                        <option value="4">国有企业</option>
                                        <option value="5">个体工商户</option>
                                        <option value="6">个人独资企业</option>
                                        <option value="7">有限合伙</option>
                                        <option value="8">普通合伙</option>
                                        <option value="9">外商独资企业</option>
                                        <option value="10">港澳台</option>
                                        <option value="11">联营企业</option>
                                        <option value="12">私营企业</option>
                                        <option value="13">企业</option>
                                        <option value="14">事业单位</option>
                                        <option value="15">基金会</option>
                                        <option value="16">社会组织</option>
                                        <option value="17">律所</option>
                                        <option value="18">香港特别行政区企业</option>
                                        <option value="19">台湾省企业</option>
                                        <option value="20">独资企业</option>
                                        <option value="21">国企</option>
                                        <option value="22">其他</option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">法定代表人</label>
                                <div class="col-sm-4">
                                    <input type="text" id="legalRepresentative" class="form-control" placeholder="请输入法定代表人">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">对外手机</label>
                                <div class="col-sm-4">
                                    <input type="text" id="enterpriseExternalPhone" class="form-control" placeholder="请输入对外手机">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">对外座机</label>
                                <div class="col-sm-4">
                                    <input type="text" id="enterpriseExternalLandline" class="form-control" placeholder="请输入对外座机">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">注册资本</label>
                                <div class="col-sm-4">
                                    <input type="text" id="registeredCapital" class="form-control" placeholder="请输入注册资本" oninput="value=value.replace(/[^\d]/g,'')">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">微信</label>
                                <div class="col-sm-4">
                                    <input type="text" id="wechat" class="form-control" placeholder="请输入微信">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">注册时间</label>
                                <div class="col-sm-4">
                                    <input   type="text" id="registrationTime" class="form-control" placeholder="请输入注册时间">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">资本类型</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="capitalType" type="text" title="请选择" data-live-search="true">
                                        <option value="">请选择资本类型</option>
                                        <option value="1">人民币</option>
                                        <option value="2">美元</option>
                                        <option value="3">其他</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">企业状态</label>
                                <div class="col-sm-4">
                                    <select class="form-control" id="enterpriseState" type="text" title="请选择" data-live-search="true">
                                        <option value="">请选择企业状态</option>
                                        <option value="1">在业</option>
                                        <option value="2">续存</option>
                                        <option value="3">吊销</option>
                                        <option value="4">注销</option>
                                        <option value="5">迁出</option>
                                        <option value="6">筹建</option>
                                        <option value="7">清算</option>
                                        <option value="8">迁入</option>
                                        <option value="9">停业</option>
                                        <option value="10">撤销</option>
                                        <option value="11">在业/存续</option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">参保人数</label>
                                <div class="col-sm-4">
                                    <input type="text" id="insuredNumber" class="form-control" placeholder="请输入参保人数" oninput="value=value.replace(/[^\d]/g,'')">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">工商注册号</label>
                                <div class="col-sm-4">
                                    <input type="text" id="businessRegistrationNumber" class="form-control" placeholder="请输入工商注册号">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">实缴资本</label>
                                <div class="col-sm-4">
                                    <input type="text" id="paidInCapital" class="form-control" placeholder="请输入实缴资本">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">纳税人识别号</label>
                                <div class="col-sm-4">
                                    <input type="text" id="taxpayerIdentificationNumber" class="form-control" placeholder="请输入纳税人识别号">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">登记机关</label>
                                <div class="col-sm-4">
                                    <input type="text" id="registrationAuthority" class="form-control" placeholder="请输入登记机关">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">核准日期</label>
                                <div class="col-sm-4">
                                    <input type="text" id="approvedDate" class="form-control" placeholder="请选择核准日期">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">成立日期</label>
                                <div class="col-sm-4">
                                    <input type="text" id="establishmentDate" class="form-control" placeholder="请选择成立日期">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">进出口企业代码</label>
                                <div class="col-sm-4">
                                    <input type="text" id="importAndExportEnterpriseCode" class="form-control" placeholder="请输入企业代码">
                                </div>
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">企业地址</label>
                                <div class="col-sm-4">
                                    <input type="text" id="companyAddress" class="form-control" placeholder="请输入企业地址">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">标签</label>
                                <div class="col-sm-4">
                                    <div style="width:100%;">
                                        <input type="text" name="staticPath" value="" id="staticPath2"/>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-2" style="width: 120px;text-align: left;">城市:</label>
                                <div class="col-xs-9" style="display: flex;">
                                    <select onchange="changeCity()" id="province" name="province" style="margin-right: 55px;width: 300px;" class="form-control" type="text" title="请选择"  data-live-search="true"></select>
                                    <select id="city" name="city" style="width: 300px;" class="form-control" type="text" title="请选择"  data-live-search="true"></select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">经营范围</label>
                                <div class="col-sm-9">
                                    <textarea id="businessScope" class="form-control" placeholder="请输入经营范围"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 120px;text-align: left;">备注</label>
                                <div class="col-sm-9">
                                    <textarea id="remark" class="form-control"></textarea>
                                </div>
                            </div>
                            <div style="text-align: center;">
                                <button type="button" class="btn btn-primary" onclick="addClue()" style="margin-right: 30px;">确定</button>
                                <button type="button" class="btn btn-default">取消</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 图表 -->
<script type="text/javascript" src="/js/echarts.min.js"></script>
<script src="/js/crm/cluePoolManager/user/saveClue.js"></script>
<!-- 城市数据 -->
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
</html>